package com.lm.Strategy;

/**
 * 环境类，以供客户端使用
 */
public class Environment {

    private Strategy strategy;

    public void setStrategy(Strategy strategy){
        this.strategy = strategy;
    }

    public void operate(){
        strategy.operate();
    }
}
